package pack0630.cn;

public class Outer3 {
    public void sing(){
        class A{
            public String name;
            int age;
            public A(String name,int age){
                this.name=name;
                this.age=age;
                System.out.println(age);
            }
            public void eat(){
                System.out.println(name+"在吃饭");
            }
        }
        A a=new A("张无忌",20);
        a.eat();
    }

    public static void main(String[] args) {
        Outer3 ou=new Outer3();
        ou.sing();
    }
}
